<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>Off Canvas Template for Bootstrap</title>

    <!-- Bootstrap core CSS -->
    <link href="Home/View/assets/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="Home/View/assets/css/offcanvas.css" rel="stylesheet">
    <link href="Home/View/assets/css/style.css" rel="stylesheet">
   
    <script src="Home/View/assets/js/ie-emulation-modes-warning.js"></script>

    
</head>


<nav class="navbar navbar-fixed-top navbar-inverse">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
    </div>
    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li><a href="index.php">首页 <span class="sr-only">(current)</span></a></li>
        <?php 
        foreach ($getbt  as $one) {
            echo '<li><a href="index.php?c=list&m=list1&id='.$one['bid'].'">'.$one['carbrandname'].'</a></li>';
        } ?>
      </ul>
      
      <form method="post" class="navbar-form navbar-left" role="search" action="index.php?c=search&m=index">
        <div class="form-group">
          <input type="text"  name="key" class="form-control" placeholder="Search">
        </div>
        <button type="submit" class="btn btn-default">搜索</button>
      </form>
      
      <ul class="nav navbar-nav navbar-right">
        <li><a href="login.html" data-toggle="modal" data-target="#myModal1">登录</a></li>
        <form  method="post" class="form-horizontal" action="index.php?c=index&m=login" enctype="multipart/form-data" >
        <div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
      <h4 class="modal-title">登录</h4>
      </div>
      <div class="container">
      <div class="row">
      <div class="modal-body">
        <div class="form-group">
            <label for="username" class="col-md-2 col-xs-3 control-label">用户名：</label>
            <div class="col-md-3 col-xs-2">
            <input name="username" type="text" class="form-control" id="username"  placeholder="用户名" required>
            </div>
          </div>
          <div class="form-group">
            <label class="col-md-2 col-xs-3 control-label" for="password">密码：</label>
            <div class="col-md-3 col-xs-2">
            <input name="password" type="password" class="form-control" id="password" placeholder="密码" required>
            </div>
          </div>
          </div>
          </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="submit" class="btn btn-primary">login</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
</form>
       <!--  <li><a href="reg.php" >注册</a></li> -->
      <!-- Button trigger modal  模态框-->
      <li><a href="user.html" data-toggle="modal" data-target="#myModal">注册</a></li>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>


<form  method="post" class="form-horizontal" action="index.php?c=index&m=register" enctype="multipart/form-data" >
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">注册</h4>
      </div>
      <div class="modal-body">
      <!-- body里的东西 -->
       <div class="container">
      <div class="row">
        <!-- //这里添加代码 -->
        <h1>用户注册</h1>
        
          <div class="form-group">
            <label for="username" class="col-md-2 col-xs-3 control-label">用户名：</label>
            <div class="col-md-3 col-xs-2">
            <input name="username" type="text" class="form-control" id="username"  placeholder="用户名" required>
            </div>
          </div>
          <div class="form-group">
            <label class="col-md-2 col-xs-3 control-label" for="password">密码：</label>
            <div class="col-md-3 col-xs-2">
            <input name="password" type="password" class="form-control" id="password" placeholder="密码" required>
            </div>
          </div>
          <div class="form-group">
            <label class="col-md-2 col-xs-3 control-label" for="gender">性别：</label>
            <div class="col-md-3 col-xs-2">
              <label class="radio-inline">
                <input name="gender" type="radio" value="0" id="gender" checked>男
              </label>
              <label class="radio-inline">
                <input name="gender" type="radio" value="0" id="gender" checked>女
              </label>
            </div>
          </div>
          <div class="form-group">
            <label for="birthdate" class="col-md-2 col-xs-3 control-label">生日：</label>
            <div class="col-md-3 col-xs-2">
            <input name="birthdate" type="date" class="form-control" id="birthdate"  placeholder="生日">
            </div>
          </div>
          
          <div class="form-group">
            <label class="col-md-2 col-xs-3 control-label" for="hobby">爱好：</label>
            <div class="col-md-3 col-xs-2">
            <label class="radio-inline">
              <input type="checkbox" name="hobby[]" value="旅游">旅游
              <input type="checkbox" name="hobby[]" value="登山">登山
              <input type="checkbox" name="hobby[]" value="健身">健身
              <input type="checkbox" name="hobby[]" value="上网">上网
              <input type="checkbox" name="hobby[]" value="游泳">游泳
            </label>
            </div>

          </div>
          <div class="form-group">
            <label class="col-md-2 col-xs-3 control-label" for="degree">学历:</label>
            <div class="col-md-3 col-xs-2">
              <select name="degree" class="form-control">
                <option value="0">请选择</option>
                <option value="1">高中</option> 
                <option value="2">大学</option>
                <option value="3">研究生</option>  
                <option value="4">博士生</option>
              </select>
            </div>
          </div>

          <div class="form-group">
            <label class="col-md-2 col-xs-3 control-label" for="intro">自我介绍：</label>
            <div class="col-md-3 col-xs-2">
              <textarea name="intro" cols="40" rows="5"></textarea>
            </div>
          </div>
          
          <div class="form-group">
            <label class="col-md-2 col-xs-3 control-label" for="pic">头像：</label>
            <div class="col-md-3 col-xs-2">
              <input name="pic" type="file" id="pic">
            </div>
          </div>
      </div>   
    </div>
    <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
            <button type="submit" class="btn btn-primary">login</button>
          </div>

       <!--body里的东西结束--> 
      </div>  
      
    </div>
  </div>
</div></form> 








 
<div class="container">
<!--幻灯片开始-->
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
    <!-- Indicators -->
    <ol class="carousel-indicators">
        <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
        <li data-target="#carousel-example-generic" data-slide-to="1"></li>
        <li data-target="#carousel-example-generic" data-slide-to="2"></li>
    </ol>

    <!-- Wrapper for slides -->
    <div class="carousel-inner">
        <div class="item active">
            <img src="Home/View/assets/images/img4.jpg"  class="img-responsive" alt="larva">

            <div class="carousel-caption">
                

            </div>
        </div>
        <div class="item">
            <img src="Home/View/assets/images/img2.jpg" class="img-responsive" alt="kave">

            <div class="carousel-caption">
                
            </div>
        </div>
        <div class="item">
            <img src="Home/View/assets/images/img3.jpg" class="img-responsive" alt="wmve">

            <div class="carousel-caption">
               

            </div>
        </div>
    </div>

    <!-- Controls -->
    <a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left"></span>
    </a>
    <a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right"></span>
    </a>
</div>
<!--幻灯片结束-->

    <div class="row row-offcanvas row-offcanvas-right">

        <div class="col-xs-12 col-sm-12">


            <div class="row text-center">
                <?php 



                    foreach($list as $ct=> $v){//var_dump($ct);
                ?>
                <div class="col-xs-12 col-lg-12 mlist">
                    <h2><?php echo $v['0']['cartypename'] ; ?></h2>
                    <ul class="list-inline row text-center">
                        <?php
                            foreach( $v as $one){
                               echo'<li class="col-xs-6 col-sm-4 col-md-3 col-lg-2 ">
                                 <img src="images/'.$one['pic'].'" class="responsive img-thumbnail"/>
                        <p><a href="index.php?c=list&m=show&id='.$one['cid'].'">'.$one['carname'].'</a>
                        </p>
                    </li>';
                            }
                         ?>
                    </ul>
                    <p><a class="btn btn-default" href="index.php?c=list&m=list2&id=<?php echo $ct['tid']; ?>" role="button">更多 &raquo;</a></p>
                </div>
                <?php
                    }
                 ?>
            </div>
            <!--/row-->
        </div>
        <!--/.col-xs-12.col-sm-9-->

  
                 
                </ul>
            </div>
        </div>



 <!-- <div class="col-xs-6 col-sm-3 sidebar-offcanvas" id="sidebar">
            <div class="list-group text-center">
                <h2 style="color:white;" >下载排行</h2>
                <ul class="list-inline row text-center">
                <?php  
                foreach($getVideoByDowntimes as $one){
                     echo'<li class="col-xs-12 col-lg-6">
                        <img src="./upload/'.$one['pic'].'" class="responsive img-thumbnail"/>

                        <p><a href="index.php?c=list&m=index&id='.$one['cid'].'  ">'.$one['videoname'].'</a>
                        </p>
                    </li>';

                }
                 ?>
                </ul>
            </div>

        </div>


        <!--/.sidebar-offcanvas-->
    </div> -->
    <!--/row-->

   

</div>
<!--/.container-->
 <hr>

    <footer>
        <p>&copy; Company 2014</p>
    </footer>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="Home/View/assets/js/jquery.min.js"></script>
<script src="Home/View/assets/js/bootstrap.min.js"></script>

<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="Home/View/assets/js/ie10-viewport-bug-workaround.js"></script>

<script src="offcanvas.js"></script>
<script>
    $('.carousel').carousel({
        interval: 3000 //changes the speed
    })
</script>
</body>
</html>
